<template>
  <div class="w-full p-10 bg-[#f6f6f6]" id="div-1">
    <a-typography-link href="#" class="block w-[35%] py-4" id="a-typography-link-91"
      ><a-image :preview="false" src="https://picsum.photos/id/12/400/100" width="100%" class="rounded-xl" id="a-image-92"
    /></a-typography-link>
    <a-row :gutter="24" id="a-row-93">
      <a-col :span="6" id="a-col-94">
        <a-card
          :bordered="false"
          class="border-1 border-t-4 border-solid border-[#ff5860] rounded-xl overflow-hidden h-full"
          id="a-card-95"
        >
          <a-typography-title :level="5" class="text-center py-2 !mb-0 bg-[#ff5860] !text-[#fff]" id="a-typography-title-96">
            本周热门
          </a-typography-title>
          <a-list class="px-4 m-1 bg-[#fff] pt-4" id="a-list-97">
            <a-list-item v-for="(item, index) in dataList8" :key="index" class="!p-0 !mb-0" :id="`a-list-item-98-${index}`">
              <a-typography-link href="#" class="flex w-full" v-if="index === 0" :id="`a-typography-link-99-${index}`">
                <a-typography-text
                  class="block w-7 h-5 rounded-full px-1 bg-[#f483a7] text-[#fff] mr-1 text-center"
                  :class="index > 2 ? '!bg-[#aeacac]' : ''"
                  :id="`a-typography-text-100-${index}`"
                >
                  {{ item.index }}
                </a-typography-text>
                <a-image :preview="false" :src="item.img" width="30%" :id="`a-image-101-${index}`" />
                <div class="pl-2 w-[60%]" :id="`div-102-${index}`">
                  <a-typography-text class="block mt-1 font-bold" :id="`a-typography-text-103-${index}`">{{ item.text }}</a-typography-text>
                  <a-typography-text class="block mt-2 text-[#999]" :id="`a-typography-text-104-${index}`"
                    >作者：{{ item.auth }}</a-typography-text
                  >
                  <a-typography-text class="block mt-2 text-[#999]" :id="`a-typography-text-105-${index}`"
                    >分类：{{ item.type }}</a-typography-text
                  >
                </div>
              </a-typography-link>
              <a-typography-link href="#" class="!text-[#999] line-clamp-1 py-1" v-else :id="`a-typography-link-106-${index}`">
                <a-typography-text
                  class="rounded-full px-1 bg-[#f483a7] text-[#fff]"
                  :class="index > 2 ? '!bg-[#aeacac]' : ''"
                  :id="`a-typography-text-107-${index}`"
                >
                  {{ item.index }}
                </a-typography-text>
                {{ item.text }}
              </a-typography-link>
            </a-list-item>
            <a-list-item class="!p-0 !mb-0 !py-1" id="a-list-item-108">
              <a-typography-link
                href="#"
                class="!text-[#f483a7] !py-1 block w-full border-0 border-solid !border-b-[1px] !border-[#efefef]"
                id="a-typography-link-109"
                >查看更多</a-typography-link
              >
            </a-list-item>
          </a-list>
        </a-card>
      </a-col>
      <a-col :span="12" id="a-col-110">
        <a-card class="border-1 border-t-4 border-solid border-[#ff5860] rounded-xl overflow-hidden h-full" id="a-card-111">
          <a-typography-title :level="5" class="w-full py-2 !mb-0 !text-[#ff5860] px-3" id="a-typography-title-112">
            古言<a-badge color="#ff5860" id="a-badge-113" />穿越
            <a-typography-link href="#" class="!text-[#ff5860] float-right text-lg" id="a-typography-link-114">
              最新上架
            </a-typography-link>
          </a-typography-title>
          <a-divider class="!mt-0" id="a-divider-115" />
          <a-flex justify="space-between" id="a-flex-116">
            <a-list class="px-4 w-[65%]" :split="false" id="a-list-117">
              <a-list-item
                v-for="(item, index) in dataList9"
                :key="index"
                class="!p-0 mb-3 my-1 !justify-start"
                :id="`a-list-item-118-${index}`"
              >
                <a-image :preview="false" :src="item.img" width="25%" :id="`a-image-119-${index}`" />
                <div class="ml-4 w-[70%]" :id="`div-120-${index}`">
                  <a-typography-link href="#" class="block font-bold text-xl !text-[#ff5860] mb-2" :id="`a-typography-text-121-${index}`">
                    {{ item.title }}
                  </a-typography-link>
                  <a-typography-paragraph
                    class="text-[#999] !mb-0"
                    :ellipsis="{ rows: 4, expandable: true }"
                    :content="item.text"
                    :id="`a-typography-paragraph-122-${index}`"
                  >
                    <template #ellipsisSymbol>
                      <a-typography-link href="#" class="!text-[#ff5860] mr-4" :id="`a-typography-link-123-${index}`">
                        查看详细...</a-typography-link
                      >
                    </template>
                  </a-typography-paragraph>
                </div>
              </a-list-item>
            </a-list>
            <a-list class="px-4 mb-4 w-[30%]" :split="false" id="a-list-124">
              <a-list-item v-for="(item, index) in dataList10" :key="index" class="!p-0" :id="`a-list-item-125-${index}`">
                <a-typography-link
                  href="#"
                  class="!text-[#999] border-0 border-solid !border-b-[1px] !border-[#efefef] w-full block py-1"
                  ellipsis
                  :id="`a-typography-link-126-${index}`"
                  >{{ item }}</a-typography-link
                >
              </a-list-item>
            </a-list>
          </a-flex>
        </a-card>
      </a-col>
      <a-col :span="6" id="a-col-127">
        <a-tabs
          :activeKey="0"
          type="card"
          class="border-1 border-solid border-[#ff5860] rounded-xl overflow-hidden h-full bg-[#fff]"
          id="a-tabs-128"
        >
          <template #renderTabBar>
            <a-flex class="bg-[#e4e4e4] mb-4" align="center" id="a-flex-129">
              <a-typography-text
                class="block px-2 py-2 text-center bg-[#e5e5e5] text-[#999] w-[50%]"
                :class="index === 0 ? 'text-[#fff] w-[40%]  !bg-[#ff5860] text-xl' : ''"
                v-for="(item, index) in dataList11"
                :key="index"
                :id="`a-typography-text-130-${index}`"
              >
                {{ item.category }}
              </a-typography-text>
            </a-flex>
          </template>
          <a-tab-pane v-for="(item, index) in dataList11" :key="index" :id="`a-tab-pane-131-${index}`">
            <a-list class="px-4 mb-4" :id="`a-list-132-${index}`">
              <a-list-item v-for="(item1, index1) in item.list" :key="index1" class="!p-0 !mb-0" :id="`a-list-item-133-${index}-${index1}`">
                <a-typography-link href="#" class="flex w-full" v-if="index1 === 0" :id="`a-typography-link-134-${index}-${index1}`">
                  <a-typography-text
                    class="block w-7 h-5 rounded-full px-1 bg-[#f483a7] text-[#fff] mr-1 text-center"
                    :class="index1 > 2 ? '!bg-[#aeacac]' : ''"
                    :id="`a-typography-text-135-${index}-${index1}`"
                  >
                    {{ item1.index }}
                  </a-typography-text>
                  <a-image :preview="false" :src="item1.img" width="30%" :id="`a-image-136-${index}-${index1}`" />
                  <div class="pl-2 w-[60%]" :id="`div-137-${index}-${index1}`">
                    <a-typography-text class="block mt-1 font-bold" :id="`a-typography-text-138-${index}-${index1}`">{{
                      item1.text
                    }}</a-typography-text>
                    <a-typography-text class="block mt-2 text-[#999]" :id="`a-typography-text-139-${index}-${index1}`"
                      >作者：{{ item1.auth }}</a-typography-text
                    >
                    <a-typography-text class="block mt-2 text-[#999]" :id="`a-typography-text-140-${index}-${index1}`"
                      >分类：{{ item1.type }}</a-typography-text
                    >
                  </div>
                </a-typography-link>
                <a-typography-link href="#" class="!text-[#999] line-clamp-1 py-1" v-else :id="`a-typography-link-141-${index}-${index1}`">
                  <a-typography-text
                    class="rounded-full px-1 bg-[#f483a7] text-[#fff]"
                    :class="index1 > 2 ? '!bg-[#aeacac]' : ''"
                    :id="`a-typography-text-142-${index}-${index1}`"
                  >
                    {{ item1.index }}
                  </a-typography-text>
                  {{ item1.text }}
                </a-typography-link>
              </a-list-item>
              <a-list-item class="!p-0 !mb-0 !py-1" :id="`a-list-item-143-${index}`">
                <a-typography-link
                  href="#"
                  class="!text-[#f483a7] !py-1 block w-full border-0 border-solid !border-b-[1px] !border-[#efefef]"
                  :id="`a-typography-link-144-${index}`"
                  >查看更多</a-typography-link
                >
              </a-list-item>
            </a-list>
          </a-tab-pane>
        </a-tabs>
      </a-col>
    </a-row>
  </div>
</template>



<script setup>
const dataList8 = [
  { text: '《闪婚总裁契约妻》', index: '01', img: 'https://picsum.photos/id/51/50/55', auth: '拈花拂柳', type: '穿越小说' },
  { text: '娇女毒妃', index: '02' },
  { text: '可恶！黑道大姐大怎么成了京城厨神', index: '03' },
  { text: '神医王妃不好惹', index: '04' },
  { text: '神厨狂后', index: '05' },
  { text: '农门神医', index: '06' },
  { text: '鲜辣厨娘：丞相请品尝', index: '07' },
  { text: '毒女狂妃，这个王爷太妻奴', index: '08' },
  { text: '侯爷，夫人超凶得宠着', index: '09' },
  { text: '穿成反派崽崽们的恶毒后娘', index: '10' },
  { text: '天降系统：农门小富婆', index: '11' },
];
const dataList9 = [
  {
    img: 'https://picsum.photos/id/91/100/145',
    title: '神厨狂后',
    text: '穿越前，她是二十一世纪令人闻风丧胆的黑道杀手。她擅长的是刺杀术、伪装术、遁地术。穿越后，她是北刺杀术、伪装术、遁地术。穿越后，她是北刺杀术、伪装术、遁地术。穿越后，她是北',
  },
  {
    img: 'https://picsum.photos/id/92/100/145',
    title: '十里红妆：明妧传',
    text: '穿越是门技术活，宅斗凭的是演技。她携绝世医术而来，人不犯我我不犯人。奈何左有狠毒叔母，右有伪善不犯我我不犯人。奈何左有狠毒叔母，右有伪善不犯我我不犯人。奈何左有狠毒叔母，右有伪善',
  },
  {
    img: 'https://picsum.photos/id/93/100/145',
    title: '帝王燕：王妃有药',
    text: '她是绝世无双的药学天才，手握药王宝鼎，一朝穿越，竟成御药房最卑微的小药奴。医师刁难，公主欺辱，御药房最卑微的小药奴。医师刁难，公主欺辱，御药房最卑微的小药奴。医师刁难，公主欺辱，',
  },
];
const dataList10 = [
  '穿成兽世万人嫌，雄性们都抢疯了',
  '成为绣弦后，我把国公爷盘活了',
  '新婚假死另娶，我兼挑两房你哭什么',
  '呸！被全族抛弃后，我带爹',
  '儿孙不孝？穿成农家老妇我',
  '让我当陪嫁？呵呵，全家都跪下',
  '你穿金戴银，闺蜜双穿我',
  '穿荒年：超癫夫妇整顿全村',
  '疯了！快递通古今，娇养将',
  '兼挑两房，小叔子和我儿孙',
  '为奴三年，不原谅！整个侯',
  '长公主都重生了，刀个亲夫',
  '有孕姨娘逼我承宠？勾上权',
  '凤倾九宸',
];
const dataList11 = [
  {
    category: '最新签约',
    list: [
      { text: '《嫡女貌美人恶，世子他超爱的》', index: '01', img: 'https://picsum.photos/id/61/50/70', auth: '忘难之', type: '宫闱宅斗' },
      { text: '新婚守寡，我跟着小叔子吃香喝辣', index: '02' },
      { text: '新婚假死另娶，我兼挑两房你哭什么', index: '03' },
      { text: '成为绣弦后，我把国公爷盘活了', index: '04' },
      { text: '穿成兽世万人嫌，雄性们都抢疯了', index: '05' },
      { text: '长公主都重生了，刀个亲夫算什么', index: '06' },
      { text: '完蛋！她养的小白脸竟是摄政王', index: '07' },
      { text: '为奴三年，不原谅！整个侯府悔断肠', index: '08' },
      { text: '凤倾九宸', index: '09' },
      { text: '父子齐跪求原谅？滚，挡我震边关了', index: '10' },
      { text: '兼挑两房，小叔子和我儿孙满堂了', index: '11' },
    ],
  },
  {
    category: '最新入库',
  },
];
</script>
<style scoped></style>